package com.zhongkun.datahome.service.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhongkun.datahome.service.domain.Appointment;
import com.zhongkun.datahome.service.mapper.AppointmentMapper;
import com.zhongkun.datahome.service.req.qry.appointment.AppointmentQry;
import com.zhongkun.datahome.service.res.appointment.AppointmentVo;
import org.springframework.stereotype.Repository;

/**
 * @Author: huangjie
 * @Date: 2025/4/14 17:15
 * @Desc
 */
@Repository
public class AppointmentRepository extends ServiceImpl<AppointmentMapper, Appointment> {

    public IPage<AppointmentVo> pageAppointment(IPage<AppointmentVo> page, AppointmentQry qry) {
        return baseMapper.pageAppointment(page, qry);
    }

    public Appointment queryMatchAppointment(Long customerHouseId) {
        return baseMapper.queryMatchAppointment(customerHouseId);
    }
}
